// To parse this JSON data, do
//
//     final priceResult = priceResultFromJson(jsonString);

import 'dart:convert';

PriceResult priceResultFromJson(String str) =>
    PriceResult.fromJson(json.decode(str));

String priceResultToJson(PriceResult data) => json.encode(data.toJson());

class PriceResult {
  int? status;
  String? message;
  PriceData? result;

  PriceResult({
    this.status,
    this.message,
    this.result,
  });

  factory PriceResult.fromJson(Map<String, dynamic> json) => PriceResult(
        status: json["status"],
        message: json["message"],
        result: PriceData.fromJson(json["result"]),
      );

  Map<String, dynamic> toJson() => {
        "status": status,
        "message": message,
        "result": result?.toJson(),
      };
}

class PriceData {
  String? unitPrice;
  String? taxRate;
  String? totalPrice;
  String? tax;
  String? subtotalPrice;

  PriceData({
    this.unitPrice,
    this.taxRate,
    this.totalPrice,
    this.tax,
    this.subtotalPrice,
  });

  factory PriceData.fromJson(Map<String, dynamic> json) => PriceData(
        unitPrice: json["unitPrice"],
        taxRate: json["taxRate"],
        totalPrice: json["totalPrice"],
        tax: json["tax"],
        subtotalPrice: json["subtotalPrice"],
      );

  Map<String, dynamic> toJson() => {
        "unitPrice": unitPrice,
        "taxRate": taxRate,
        "totalPrice": totalPrice,
        "tax": tax,
        "subtotalPrice": subtotalPrice,
      };
}
